/*
 * @author: kai
 */
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import postcssImport from "postcss-import"
import autoprefixer from 'autoprefixer'
import tailwindcss from 'tailwindcss'
import forms from '@tailwindcss/forms'
import precss from "precss";
const purgecss = require('@fullhuman/postcss-purgecss')
// https://vitejs.dev/config/
export default defineConfig({
  base: './',
  plugins: [vue()],
  css:{
    postcss:{
      plugins:[
        postcssImport,
        precss,
        autoprefixer,
        purgecss({
          content: ['./src/**/*.html','./src/**/*.vue']
        }),
        tailwindcss({
          plugins: [
            forms,
          ],
        }),
      ]
    }
  }
})
